import service from '@/utils/request'

// @Tags FileManager
// @Summary 创建FileManager
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FileManager true "创建FileManager"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fileManager/createFileManager [post]
export const createFileManager = (data) => {
     return service({
         url: "/fileManager/createFileManager",
         method: 'post',
         data
     })
 }


// @Tags FileManager
// @Summary 删除FileManager
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FileManager true "删除FileManager"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fileManager/deleteFileManager [delete]
 export const deleteFileManager = (data) => {
     return service({
         url: "/fileManager/deleteFileManager",
         method: 'delete',
         data
     })
 }

// @Tags FileManager
// @Summary 删除FileManager
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除FileManager"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fileManager/deleteFileManager [delete]
 export const deleteFileManagerByIds = (data) => {
     return service({
         url: "/fileManager/deleteFileManagerByIds",
         method: 'delete',
         data
     })
 }

// @Tags FileManager
// @Summary 更新FileManager
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FileManager true "更新FileManager"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fileManager/updateFileManager [put]
 export const updateFileManager = (data) => {
     return service({
         url: "/fileManager/updateFileManager",
         method: 'put',
         data
     })
 }


// @Tags FileManager
// @Summary 用id查询FileManager
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FileManager true "用id查询FileManager"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fileManager/findFileManager [get]
 export const findFileManager = (params) => {
     return service({
         url: "/fileManager/findFileManager",
         method: 'get',
         params
     })
 }


// @Tags FileManager
// @Summary 分页获取FileManager列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取FileManager列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fileManager/getFileManagerList [get]
 export const getFileManagerList = (params) => {
     return service({
         url: "/fileManager/getFileManagerList",
         method: 'get',
         params
     })
 }